package com.jues.huichain.login.presenter;


import com.jues.huichain.login.activity.RegisterActivity;
import com.jues.huichain.login.entity.CodeEntity;
import com.jues.huichain.login.entity.EntranceEntity;
import com.jues.huichain.login.entity.EntranceResultEntity;
import com.jues.huichain.login.model.EntranceModel;

import health.lm.com.component_base.base.mvp.contract.XPresent;
import health.lm.com.data.App;
import health.lm.com.data.HttpCST;
import health.lm.com.network.callback.SimpleCallBack;

/**
 * 注册
 */

public class RegisterPresenter extends XPresent<RegisterActivity> {
    public void getCode(String phone) {
        CodeEntity codeEntity = new CodeEntity("", phone);
        EntranceModel.getInstance().getCode(codeEntity, new SimpleCallBack<Object>() {
            @Override
            public void onSuccess(Object pO) {
                if (hasV()) getV().getCodeSuccess("验证码发送成功");
            }
        });
    }
}
